var index = require('../controllers/IndexController');
var about = require('../controllers/AboutController');
var product = require('../controllers/ProductController');
var setup = require('../controllers/SetupController');
var honor = require('../controllers/HonorController');
module.exports = function(app){
	app.use('/',function(req,res,next){
       if(req.url =="/favicon.ico"){
          return;
       }
       if(!app.locals.footer){
       	 var config = require('../controllers/configController');
         config.getConfig(app);
       }
       next();
	})
    app.get('/',index);
    app.get('/about',about);
    app.get('/product',product.productList);
    app.get('/porduct_details',product.productDetails);
    app.get('/setup/:class',setup.setupList);
    app.get('/honor',honor.honor);
    app.get('/content',function(req,res){
        res.render('content');
    });
}